const basiCode = require('../util/baseCode.js');
const dateFormat = require('dateformat');
// 用户表
const userModel = require('../model/userModel.js');

//埋点数据
exports.addUserStat = async (params, cloud) => {
    console.log("==============service==================")
    let reduceNum = await userModel.addUserStat(params, dateFormat(new Date(), "yyyy-mm-dd hh:MM:ss"), cloud);
    if (reduceNum.affectedRows) {
        return await basiCode(0, { isOk: 1, msg: '添加成功' });
    }
};

